package com.awt;

import java.awt.*;

/**
 * @authoer zsj
 * @date 2023/4/15 12:33
 */
public class ScrollPanelDemo {
    public static void main(String[] args) {
        Frame frame =new Frame("scrollpanel");


        ScrollPane scrollPane = new ScrollPane(ScrollPane.SCROLLBARS_ALWAYS);
        scrollPane.add(new TextField("测试文本"));
        scrollPane.add(new Button("测试按钮"));


        frame.add(scrollPane);



        frame.setBounds(100,100,500,300);
        frame.setVisible(true);
    }

}
